Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only initial backtracking up to start offset when far behind #109

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

pvlugter
Copy link
Contributor

We've already fixed the heartbeat on backtracking idle in #104. When looking at that issue, we also noticed that there was both the initial backtracking queries up to the initial offset, and then it later switched to more backtracking, even though it was far behind. Not essential to fix this, but we can correct it now.

Update the check to be up to or ahead of the initial offset. Extend the test to cover this scenario.

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@patriknw patriknw added this to the 2.0.4 milestone Dec 4, 2024
@patriknw patriknw merged commit 8c8f997 into main Dec 4, 2024
5 checks passed
@patriknw patriknw deleted the initial-backtracking-then-skip branch December 4, 2024 06:30
@patriknw
Copy link
Member

patriknw commented Dec 4, 2024

Ported to r2dbc: akka/akka-persistence-r2dbc#631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants